package com.kele.base.bo;

import com.kele.base.validate.ValidateGroup;
import jakarta.validation.constraints.NotNull;

import java.io.Serial;
import java.io.Serializable;

public class BaseBO<ID extends Serializable> implements Serializable {

    @Serial
    private static final long serialVersionUID = 7283239837917186288L;

    /**
     * id
     */
    @NotNull(message = "The id can not be empty.", groups = {ValidateGroup.Update.class})
    private ID id;

    public ID getId() {
        return id;
    }

    public void setId(ID id) {
        this.id = id;
    }

    @Override
    public String toString() {
        return "BaseBO{" +
                "id=" + id +
                '}';
    }
}
